package by.ins.app;

import by.ins.life.evolution.ILifeEvoluter;

public class AppHelper {
	
	
	/*
	 * return LiveEvoluter by passed name or null if unexist;
	 */

	public static ILifeEvoluter getLiveEvoluter(String name) {
		ILifeEvoluter result = null;
		// List<ILifeEvoluter> evolutors = AppContext.getDefinedLifeEvolutor();
		for (ILifeEvoluter evoluter : AppContext.getDefinedLifeEvolutor()) {
			if (name.equals(evoluter.getName())) {
				result = evoluter;
				break;
			}
		}
		return result;
	}
}
